//
//  OrderDescriptionCell.m
//  Wujin
//
//  Created by 东 on 16/12/10.
//  Copyright © 2016年 dong. All rights reserved.
//

#import "OrderDescriptionCell.h"

@implementation OrderDescriptionCell

- (void)setModel:(OrderGoodsModel *)model
{
    _model = model;
    
    _nameLab.text = model.Name;
    _typeLab.text = model.Type;
    _countLab.text = model.Count;
    _priceLab.text = F(@"%@元", model.Price);
    _totalPriceLab.text = F(@"%@元", model.TotalPrice);
}

- (void)setIndex:(NSInteger)index
{
    _index = index;
    
    _name.text = F(@"商品：%ld", (long)index+1);
}

@end
